{% raw %}{% extends "base.html" %}

{% load static %}

{% block title %}
  User: {% endraw %}
  {% if cookiecutter.username_type == "email" %}
    {% raw %}{{ object.name }}{% endraw %}
  {% else %}
    {% raw %}{{ object.username }}{% endraw %}
  {% endif %}
  {% raw %}
{% endblock title %}
{% block content %}
  <div class="container">
    <div class="row">
      <div class="col-sm-12">
        <h2>
        {% endraw %}
        {% if cookiecutter.username_type == "email" %}
          {% raw %}{{ object.name }}{% endraw %}
        {% else %}
          {% raw %}{{ object.username }}{% endraw %}
        {% endif %}
      </h2>
      {%- if cookiecutter.username_type == "username" %}
      {%- raw %}
      {% if object.name %}
        <p>{{ object.name }}</p>
      {% endif %}
      {%- endraw %}
      {%- endif %}
    </div>
  </div>
  {%- raw %}
  {% if object == request.user %}
    <!-- Action buttons -->
    <div class="row">
      <div class="col-sm-12">
        <a class="btn btn-primary" href="{% url 'users:update' %}" role="button">My Info</a>
        <a class="btn btn-primary"
           href="{% url 'account_email' %}"
           role="button">E-Mail</a>
        <!-- Your Stuff: Custom user template urls -->
      </div>
    </div>
    <!-- End Action buttons -->
  {% endif %}
</div>
{% endblock content %}
{%- endraw %}
